package com.itheima.demo01;

public class Student {
    public String stuId;
    public String name;
    private int age;

    public Student() {
    }

    private Student(String stuId){
        this.stuId = stuId;
    }

    public Student(String stuId, String name){
        this.stuId = stuId;
        this.name = name;
    }

    public Student(String name, int age){
        this.name = name;
        this.age = age;
    }

    public Student(String stuId, String name, int age) {
        this.stuId = stuId;
        this.name = name;
        this.age = age;
    }

    public String getStuId() {
        return stuId;
    }

    public void setStuId(String stuId) {
        this.stuId = stuId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    private void show(String name){
        System.out.println("我有一只小毛驴:" + name);
    }

    public void show1(String name){
        System.out.println("我有一只小毛驴:" + name);
    }

    public void show2(){
        System.out.println("我有一只小毛驴:");
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuId='" + stuId + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
